package com.ruoyi.web.studentmanagementsystem.mapper;

import com.ruoyi.web.studentmanagementsystem.dto.*;
import com.ruoyi.web.studentmanagementsystem.pojo.SysTeacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: ISysStudentService
 * Package: com.ruoyi.web.studentmanagementsystem.service
 * Description:老师管理 数据层
 *
 * @Author Mr. o
 * @Create 2023/11/8 10:18
 * @Version 1.0
 */
@Mapper
public interface SysTeacherMapper
{
    /**
     * 新增保存老师信息
     *
     * @param teacher 老师信息
     * @return
     */
    void insertTeacher(ISysTeacherDTO teacher);

    /**
     * 删除老师信息
     *
     * @param teacherId 老师ID
     * @return
     */
    void deleteTeacherId(String teacherId);

    /**
     * 根据老师姓名查询信息
     *
     * @param teacherName 老师姓名
     * @return
     */
    List<SysTeacher> selectTeacherName(String teacherName);

    /**
     * 修改保存老师信息
     *
     * @param teacher 老师信息
     * @return
     */
    void updateTeacher(IISysTeacherDTO teacher);
}
